package com.level.springboot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {
	
	
	
	@GetMapping("/hello")
	public String hello() {
		
		return "hello";
		
	}
	@GetMapping("/hello2")
	public String hello2() {
		
		return "hello2";
		
	}
	
	@Value("${name}")
	private  String name;
	
	
	@GetMapping("/")
	public String home() {
		
		return name;
		
	}

}
